package com.wish233.wiliwiliapi.client;

import com.wish233.wiliwiliapi.domain.vo.VideoVO;
import com.wish233.wiliwiliapi.fallback.VideoClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author WHH
 */
@FeignClient(name = "wiliwili-video",
        configuration = FeignInterceptor.class,// 请求拦截器 （关键代码）
        fallbackFactory = VideoClientFallback.class
)
public interface VideoClient {

    @GetMapping("/video/all")
    List<VideoVO> getAllVideo();

}
